package sifeap.pl.managedbean.convenios;

import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import sifeap.bl.ejb.convenios.ConvenioBLLocal;
import sifeap.entities.convenios.Convenio;

@ManagedBean(name="listaConveniosManagedBean")
@SessionScoped
public class ListaConveniosManagedBean {
	private List<Convenio> listaConvenios;
	
	@EJB
	private ConvenioBLLocal convenioBL;

	public List<Convenio> getListaConvenios() {
		try {
			listaConvenios = convenioBL.buscarTodos();
		} catch (Exception e) {
			e.printStackTrace();
		}	
		return listaConvenios;
	}
}
